#ifndef CUTILITY_H
#define CUTILITY_H

#include <QString>

class CUtility
{
private:
    //not used for instance
    CUtility();
public:
    /**
     * Get role Id from the role name map
     * @param roleNameMap role name map that used to search
     * @param roleStart the offset that add to the found role in roleNameMap
     * @param roleName the search role name
     * @return role id that added with roleStart, -1 for not find
     */
    static int getRoleId(const QString roleNameMap[][2], int roleStart, QString roleName);

};

#endif // CUTILITY_H
